<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div:not(#app){
            padding: 50px;
        }
        .box1{
            background-color: pink;
        }
        .box2{
            background-color: rgb(196, 17, 47);
        }
        .box3{
            background-color: rgb(49, 25, 116);
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="box1" @click='f1'>
            <div class="box2" @click='f2'>
                <div class="box3" @click='f3(3,$event)'></div>
            </div>
            
        </div>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    const vm=new Vue({
        el:'#app',
        methods:{
            f1(){
                console.log(1)
            },
            f2(){
                console.log(2)
            },
            f3(data,event){
                console.log(event)
                console.log(event.target)
                event.stopPropagation()
                console.log(data)
            }
        }
    })
</script>
</html>